from django.urls import path
from user.views import TestView, JwtTestView, LoginView, PwdView, SearchView, tokenRefreshView, ImageView, AvatarView, \
    GetUserInfo, saveUserView, CheckView, deleteView, logoutView

urlpatterns = [
    path('test', TestView.as_view(), name='test'),  # 测试
    path('jwt_test', JwtTestView.as_view(), name='jwt_test'),  # jwt测试
    path('login', LoginView.as_view(), name='login'),
    path('logout', logoutView.as_view(), name='logout'),
    path('refresh', tokenRefreshView.as_view(), name='refresh'),
    path('updateUserPwd', PwdView.as_view(), name='updateUserPwd'),
    path('userInfo', GetUserInfo.as_view(), name='userInfo'),
    path('searchUser', SearchView.as_view(), name='searchUser'),
    path('uploadImage', ImageView.as_view(), name='uploadImage'),
    path('updateAvatar', AvatarView.as_view(), name='updateAvatar'),
    path('save', saveUserView.as_view(), name='save'),
    path('check', CheckView.as_view(), name='check'),
    path('delete', deleteView.as_view(), name='delete')
]
